The first line of the input contains an integer $T$, denoting the number of test cases.
In each test case, the first line of the input contains an integer $n$, denoting the length of the original sequence.
The second line of the input contains $n$ integers $A_1, A_2, ..., A_n$, denoting the elements of the sequence.
$1 \le T \le 10,~3 \le n \le 100000,~1 \le A_i \le 10^9$