Snap Interview Question

Number of islands (leetcode 200)