Domanda di colloquio di Bridgewater Associates

How would you topologically sort a DAG?