Code for problem "Same Tree".