same for tree2
Node temp2 = s2 . Pop ( ) ; while ( temp2 != null && ! temp2 . Leaf ) { if ( temp2 . right != null ) { s2 . Push ( temp2 . right ) ; } if ( temp2 . left != null ) { s2 . Push ( temp2 . left ) ; } temp2 = s2 . Pop ( ) ; }