Google Interview Question

Design a task scheduler that executes tasks with delays while ensuring only one task runs at a time