Cisco interview question

How would you tell whether these two unsorted arrays are the same array?