Amazon Interview Question

data structure, work simulation, algorithm