reverseInteger and sameTree