Amazon interview question

Leetcode problems from different levels