Amazon Interview Question

https://leetcode.com/problems/number-of-islands/ leet code question number 200