Implement a Dependency-Aware Task Scheduler | Scale AI Interview Question