Morgan Stanley interview question

2Sum on Leetcode