removeLeafNodes that takes a TreeNode and the target value as arguments.null, return null.removeLeafNodes on the left and right children of the current node.null) and if its value equals the target.null to delete it.removeLeafNodes is made with the root of the tree.