Microsoft interview question

I was asked leetcode Two sum