Amazon Interview Question

They asked 2 coding questions that I would say were on par with LeetCode easy/medium problems