Citadel interview question

Graph traversal stuff