Google Interview Question

Test Cycle in a directed graph.