Perform a Topological Sort of a Directed Acyclic Graph (DAG) using Kahn’s Algorithm.
Steps: Start with nodes having indegree 0 → remove → reduce neighbors indegree → continue.