Solved same-tree.