Dropbox Interview Question

Number of islands DP problem.