Microsoft interview question

Two Sum leetcode question was asked