Google Interview Question

design a scheduler in python