TikTok interview question

Traversing a Graph and using other data structures