Pergunta de entrevista da empresa Windsurf

one question was a topological sort question