Tavant Interview Question

Explain topological sort