def equalContents(arr1, arr2):
 return (frozenset(arr1) == frozenset(arr2))

def equalContents ( arr1 , arr2 ) : return ( frozenset ( arr1 ) == frozenset ( arr2 ) )
checks if the set of unique elements of arr1 and arr2 are equivalent .