Mental Model
We visit each task and all the tasks that depend on it first, then add the task to the order. This way, tasks come after their prerequisites.
Analogy: Imagine you have to build a toy set where some parts must be assembled before others. You first build all parts that depend on this part, then add that part to the final set.
Graph: 0 -> 1 -> 3 ↓ ↓ 2 4 Order stack (empty at start): [] Visited nodes marked with ↑
