Google Interview Question

BFS based lake and island traversal