Google interview question

its graph question. topological sort