Suppose we want to create a method for the class BinaryTree that decides whether two trees have the same structure. The header of the method could be as follows:
public boolean isIsomorphic(BinaryTreeInterface otherTree)
Write this method, using a private recursive method of the same name.