Citadel interview question

Topological Sort a Set of Nodes