Nokia interview question

The Number of Islands Leetcode question