Pergunta de entrevista da empresa Google

Test Cycle in a directed graph.