Informatica interview question

Topological sort