OYO interview question

Leetcode Medium Problem -Task Sc heduler