Compass interview question

2d array find the islands