TuSimple interview question

The leetcode question island numbers