Lime Interview Question

Topological sorting using indegree-based algorithm