Goldman Sachs interview question

two sum from leetcode and it was very easy.