Amazon interview question

data structure, work simulation, algorithm