TuSimple Interview Question

The leetcode question island numbers