Fathom interview question

Graph traversal