// Given the node class, implement the Build Tree function.
// The treeStructure array represents the tree structure,
// where the array position indicates the node and the value the
// parent node. The nodeValues array represents each of the Nodes values.
public class Node
{
public Node Parent { get; set; }
public int Value { get; set; }
}
public Node BuildTree(int[] treeStructure, int[] nodeValues)
{
// $TODO: Implement.
}