Pergunta de entrevista da empresa TikTok

two LC medium problems asked. Graphs, dfs, bfs, etc.