Given an matrix isConnected where isConnected[i][j] = 1 means city and city are directly connected, return the number of provinces.
A province is a group of directly or indirectly connected cities. Example: isConnected = [[1,1,0], [1,1,0], [0,0,1]] Returns (cities 0,1 form one province; city 2 alone).
You're finding connected components on an adjacency matrix. Constraints: from to .