Google interview question

Graph algorithm / graph traversal