title: Rotate M*N Matrix (90 degrees)
body: <p>How can I rotate matrix </p>
  
  <pre><code>|3 4 5 6 8|
  |5 4 3 2 6|
  |3 3 7 8 9|
  </code></pre>
  
  <p>to  </p>
  
  <pre><code>|8 6 9|            
  |6 2 8|
  |5 3 7|
  |4 4 3|
  |3 5 3|
  </code></pre>
  
  <p>Because all algorithms I've seen was for N*N matrix.</p>