Uber Interview Question

Find Island in matrix