DFS-Based Approach - Topological Sorting | OneNoughtOne