Find Root of N-Ary Tree
An N-ary tree is stored as a set of nodes whose values are unique non-negative integers. Two arrays describe it. `parentValues` holds the value of every node in the tree, including the root, in arbitrary order. `childValues` holds the values of all children, flattened across every node's child list, so a node that appears as somebody's child contributes exactly one entry there per parent edge. The tree is well formed: exactly one node is not anybody's child, and that node is the root.