Union-Find: number of provinces — Python practice — Live Code Tutor