Pergunta de entrevista da empresa Route

Write a graph traversal/aggregation algorithm