TikTok interview question

Dfs, bfs, graph traversal questions