Amazon Interview Question

Design a graph traversal algorithm to count islands