Block interview question

Implement a task scheduling system