Pregunta de entrevista de Flexport

Question about traversing a directed graph