Amazon interview question

2 sum which on leetcode