Lyft Interview Question

count number of islands in a binary graph