Pergunta de entrevista da empresa EAI Technologies

Given a number and array, return true if two numbers add up to the given number (Interview 2)