Pergunta de entrevista da empresa Bloomberg

Number of Islands, Desert/oasis question on leetcode