Nutanix interview question

Course Schedule II leetcode style problem