Axon interview question

Number of Islands Leetcode Medium.