How to find if the pair with given sum exists in array

visit shbcf.ru