Validate Binary Tree Nodes
Check that the child arrays form exactly one binary tree: one root, no node with two parents, and every node reachable from it.
Check that the child arrays form exactly one binary tree: one root, no node with two parents, and every node reachable from it.