Domanda di colloquio di Google

Leet code problem with counting the islands.