Intuit interview question

A easy topological sort question