Pergunta de entrevista da empresa Grab

In an integer array find a pair of numbers which add up to a given number