Microsoft interview question

Two sum Leetcode interview question