Meta Interview Question

Coding: the number of islands.