Walmart interview question

Course Schedule (detect a cycle in a directed graph using topological sort / DFS)