title: Mirror image of a binary tree
body: <p>Suppose there is a tree:</p>
  
  <pre><code>             1
              / \
             2   3
                / \
               4   5
  </code></pre>
  
  <p>Then the mirror image will be:</p>
  
  <pre><code>              1
               / \
              3   2
             / \
            5   4
  </code></pre>
  
  <p>Assume the nodes are of this structure:</p>
  
  <pre><code>struct node{
        node left;
        node right;
        int value;
  }
  </code></pre>
  
  <p>Can someone suggest an algorithm for this?</p>