Peloton Interactive interview question

Topological sort question on a directed acyclical graph.