Amazon Interview Question

to solve dsa problems from leetcode