Question d’entretien chez AT&T

island count problem from leetcode