mergeTrees
that takes two nodes, one from each tree.mergeTrees
on the left children of both nodes, and set the left child of the first node to the result.mergeTrees
on the right children of both nodes, and set the right child of the first node to the result.