TikTok interview question

DFS Traversal problem to implement

TikTok Interview Question: DFS Traversal problem to implement | Glassdoor