Swiggy Interview Question

Course schedule problem of leetcode