Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to check if a directed graph is a valid topological sort using DFS and adjacency lists.

Run the code to see the output here...