Yelp Interview Question

Onsite Tech #3: Traversing a directed graph to find all weakly connected components