Pergunta de entrevista da empresa Credgenics

Find the pair in an array whose result is equal to the given target sum