Amazon Interview Question

Number of Islands- available on leetcode