Pergunta de entrevista da empresa Google

Medium level difficulty leetcode, ie. number of islands