Question d’entretien chez Microsoft

I was asked leetcode Two sum