Meta interview question

Leetcode 827. Making A Large Island