Pregunta de entrevista de Huawei Technologies

Solve the isolated island question in Java 2D array