Pergunta de entrevista da empresa Hadrian

Traverse a directed acyclic graph in Python