Log in to run or submit
Return a topological ordering if it exists.
Kahn’s algorithm (BFS topo sort):
b -> a
numCourses