Miro interview question

Count Island problem hackerrank hard category