Cleartrip Interview Question

asked to implement a task scheduler