The first line of the input contains a single integer $T$ $(1 \leq T \leq 10^4)$, denoting the number of test cases.
The first line of each test case contains a single integer $n$ $(1 \leq n \leq 10^5)$, denoting the length of the permutation.
The second line of each testcase contains $n$ integers $a_1, a_2, \ldots, a_n$ $(1 \le a_i \le n)$, denoting the permutation. It's guaranteed that every number from $1$ to $n$ appears exactly once.
The sum of $n$ in all test case will not exceed $2 \times 10^5$.