Yelp interview question

Trasverse graph algorithm question for the first interview.