Question d’entretien chez Huawei Technologies

Solve the isolated island question in Java 2D array