Both non - empty , compare them recursively . Note that in recursive calls , we pass left of one tree and right of other tree
return ( a . data == b . data and areMirror ( a . left , b . right ) and areMirror ( a . right , b . left ) ) NEW_LINE