Amazon interview question

Number of islands problem using Traversal techniques