Solved same tree problem.