Count Connected Landmasses - Coding problem | OneNoughtOne