Nutanix Interview Question

leetcode-200 number of islands question