Pergunta de entrevista da empresa Flexport

Question about traversing a directed graph