Uber Interview Question

Node traversal in a cyclic graph.