title: Minimum number of swaps needed to change Array 1 to Array 2?
body: <p>For example, input is</p>
  
  <pre><code>Array 1 = [2, 3, 4, 5]
  Array 2 = [3, 2, 5, 4]
  </code></pre>
  
  <p>Minimum number of swaps needed are <code>2</code>.</p>
  
  <p>The swaps need not be with adjacent cells, any two elements can be swapped.</p>
  
  <p><a href="https://www.spoj.com/problems/YODANESS/" rel="nofollow noreferrer">https://www.spoj.com/problems/YODANESS/</a></p>