You are to create a class named BinaryTree. This will simulate abalanced and ordered binary tree. You also need to create aTreeNode class, which defines the data contained in each node ofthe tree. In this case, it is an integer. Remember that the nodealso needs a way to track back to its parent, as well as its leftand right children. For the purpose of this assignment, each nodeshould also contain an indication of its level within the tree. Forthe TreeNode, the constructor only needs to obtain the integervalue held in the node. The class should have modifiers to allowits placement
PayPal Gateway not configured
PayPal Gateway not configured