Amazon Interview Question

Number of islands problem using Traversal techniques