A sewer drainage system is structured as a tree. Water enters the system at n
nodes numbered from 0 to n-1 and flows through the tree to the root, which has
the number 0.
The tree structure is defined by an array parent, where parent[i] = j means that
water