Write a function to check if two arrays have the same elements (ignoring the order).
MediumProblem Statement
Write a function to check if two arrays have the same elements (ignoring the order).
Sample Input
[1, 2, 3], [3, 2, 1]
Sample Output
true
Limits
Time: 2s · Memory: 256 MB