CareerBuilder interview question

Algorithm question related to graph traversal.