Batikha has just invented their very own sorting algorithm, and they're quite proud of it. It is called Batikha Sort, and it works on an array of elements as follows: pick any two indices i \neq j such that i \equiv j \pmod 2, then \mathsf{swap}(p_i,p_j). Repeat as many times as you like.
Batikha insists that their algorithm can sort absolutely anything. You are not so sure.
You are given a permutation of \{1,2,\dots,n\}. Determine whether it is possible to sort into increasing order using any number (possibly zero) of Batikha Sort operations.
The first line of each test case contains single integer (1 \le t \le 100) — the number of test cases.
The first line of each test case contains single integer (1 \le n \le 1000) — the length of the permutation.
The second line of each test case contains -separated integers p_1,p_2,\ldots,p_n (1 \le p_1,p_2,\ldots,p_n \le n) and (p_i \neq p_j \ ; \ i \neq j).
For each testcase, output "YES" (without quotes) if we can sort permutation , and "NO" (without quotes) otherwise.
You can output the answer in any case (for example, the strings "yEs", "yes", "Yes", and "YeS" will be recognized as positive responses).
Example 1
Subtask ( points) : No additional constraints.