Google Interview Question

Something about seeing if a graph has a cycle