Domanda di colloquio di Fi Money

The question was around Disjoint set data structure