IXL Learning Interview Question

A question about topological sort.