Google Interview Question

Asked to solve a scheduling problem