Add solution to 'same tree'.