Pergunta de entrevista da empresa Bloomberg

Number of islands leetcode question