Pergunta de entrevista da empresa Google

Find a pair of numbers with a certain sum in an array.