American Express interview question

2Sum Problem and Hard level questions from leetcode.