• Given a binary tree aBinaryTree, returns its right child. Raises an error if the tree does not have a right child.

    Parameters

    • aBinaryTree: Tree<any>

      the tree to consider

    Returns Tree<any>

    the right child if possible