Pergunta de entrevista da empresa Google

Leet code problem with counting the islands.