TikTok Interview Question

Leetcode graph and dfs mediums