Pergunta de entrevista da empresa Amazon

Topological Sort of Graph Question