Uber Interview Question

Number of Islands