Pergunta de entrevista da empresa PayPal

finding two numbers in an array that add up to a given target number