Microsoft Interview Question

Two sum from leetcode, with modify but easy and more