Disney+ Hotstar Interview Question

https://leetcode.com/problems/course-schedule-ii/ simple topological sort solution