Microsoft Interview Question

I was asked leetcode Two sum