ByteDance Interview Question

Medium Leetcode using BFS and DFS