Peloton Interactive Interview Question

Topological sort question on a directed acyclical graph.