Philips interview question

Find islands in a matrix