PEAK6 interview question

A greedy algorithm about scheduling