Staples interview question

Two Sum Leet code problem.