Amazon Interview Question

3 leetcode medium and 1 system design