As confirmed by Prof. Arora, this answer is incorrect. Consider the case we have a directed graph who has 3 nodes 1,2,3, such that, 1->2 and 3->2, If we DFS it and store the vertices in a linked list, it may be “3,2,1”, “1,2,3” or “2,1,3”, “2,3,1”.
However, the topological sort should be “3,1,2” or “1,3,2” which u comes before v in every edge (u,v).