Pregunta de entrevista de Windsurf

one question was a topological sort question