Number of Provinces

mediumSolve on LeetCode