Pregunta de entrevista de Amazon Web Services

They asked me a LeetCode-style island problem (BFS/DFS)