I have two array's
Array1[1,3,5,7,4,0,8]
Array2[1,5,8,3,4,2,9]
What I would like to achieve is an output count = 3( three of the numbers 3,5,8 from Array2 are in Array1 but in the wrong place) using Math.min.
Can someone explain this process to me please. Thank you