Amazon Interview Question

A system design problem.