Pergunta de entrevista da empresa Amazon

Topo sort (look it up on leetcode)