• Given a binary tree aBinaryTree, returns the value on its root node.

    Parameters

    • aBinaryTree: Tree<any>

      the tree to consider

    Returns any

    the value at the root of the tree