Microsoft interview question

Two sum from leetcode, with modify but easy and more