Pergunta de entrevista da empresa Postmates

Create an algorithm for finding a pair of numbers in an array that when added, it produces a given value.