Google interview question

Asked to solve a scheduling problem