Thank you all for your reply
Both arrays are contains random numbers, but they can be sorted.
Example #1
Array1 {1,2,3}
Array2 {1,1,2,2,3,3}
By comparing two arrays, the result should tell that the second array has two copys of the first array.
Example #2
Array1 {1,2,3}
Array2...