Tree Game - Learn the Hierarchical Structure

In this game, children can input a node value and specify the parent node value (blank for the root node). By clicking the “Add Node” button, the node is added to the tree as a child of the specified parent node. The “Remove Node” button removes the specified node and its children from the tree.
The tree is displayed hierarchically, with child nodes indented under their parent nodes. Nodes are dynamically added or removed from the tree as children interact with the game.