BinaryTree Count Equal Children
Create a public class
BinaryTreeCounter that provides a single class method named
accepts a single
BinaryTree<?> and counts the number of nodes in the tree that have two children with equal
Keep in mind that not every node has a right or left child, so you'll need to check for
However, you can assume that all of the values in the tree are non-null.
cs125.trees.BinaryTree has the following public properties: