Microsoft interview question

leetcode two sum..