Trees A tree is made up of nodes (data elements) with zero, one or several references to other nodes. Each node has only one other node referencing it.
The height of a tree is defined to be the maximum distance from the root node to any leaf node. Write a function to calculate the height of an arbitrary tree.