Amazon Interview Question

2 sum Dp Leetcode medium and easy