Pergunta de entrevista da empresa Goldman Sachs

two sum from leetcode and it was very easy.