Click on Topological Sorting - Indegree based solution to open the resource.