Driver code to test above methods
a = new Node ( 1 ) ; b = new Node ( 1 ) ; left = new Node ( 2 ) ; right = new Node ( 3 ) ; left . left = new Node ( 4 ) ; left . right = new Node ( 5 ) ; left = new Node ( 3 ) ; right = new Node ( 2 ) ; right . left = new Node ( 5 ) ; right . right = new Node ( 4 ) ; if ( areMirror ( a , b ) == true ) document . write ( " " ) ; else document . write ( " " ) ;