SameTree Java Solved