Domanda di colloquio di Cruise

Leetcode easy/medium BFS/DFS question involving nested arrays.