Deutsche Bank Interview Question

Topological Sort of a graph