Google interview question

Subsets (Backtracking) + Number of Islands (Graphs)