Google Interview Question

Explain the algorithm of topological sort