Question d’entretien chez Amazon

Islands problem that can be found on leetcode