Tesla Interview Question

max islands leetcode question (BFS/DFS)