Amazon interview question

To solve an algorithmic problem regarding scheduling.