Amazon Interview Question

Case Study question