Pregunta de entrevista de Snapdeal

Find whether a pair exists in a given array whose sum is equal to a given number