You don't need to take input. Just complete the function areMirror() that takes root node of two tree as parameter and returns true, if one is the mirror of other else returns false. (The driver's code print 1 if the returned value is true, otherwise 0) Expected Time Complexity: O(N). Expected Auxiliary Space: O(Height of the Tree).
1 <= Number of nodes<= 10000
-1000 <= Data of a node<= 1000