There are n cities. Some are connected directly or indirectly. A province is a group of directly or indirectly connected cities.
You are given an n x n matrix isConnected where isConnected[i][j] = 1 if city i and city j are directly connected. Return the total number of provinces.