Microsoft interview question

Got asked two-sum for the leetcode question.