Bloomberg interview question

Number of islands leet code problem. Design underground system