Pergunta de entrevista da empresa Uber

Recursively traverse a a directed graph