class Solution {
public:
TreeNode* mirrorTree(TreeNode* root) {
if(root!=NULL){
swap(root->left, root->right);
}
else return NULL;
mirrorTree(root->left);
mirrorTree(root->right);
return root;
}
};