Philips Interview Question

Find islands in a matrix