Google Interview Question

Subsets (Backtracking) + Number of Islands (Graphs)