Two arrays of size N are called identical arrays if they contain the same elements. The order of elements in both arrays could be different; however, both the arrays must contain same elements. You are given two arrays of size N.
You need to determine if the arrays are identical or not.
The first line of the input contains a single integer T, denoting the number oftest cases. Then T test case follows. Each test case contains 3 lines:-
size of array N
elements of array1
elements of array2
Print 1 if the arrays are identical, and print 0 if they are not identical.