Deutsche Bank interview question

Topological Sort of a graph