Topological Sort - Parallel Courses (Minimum Semesters)
Given the following code snippet implementing the optimal BFS topological sort for minimum semesters, what is the output for
n = 4 and relations = [[1,2],[1,3],[3,4]]?