The first line of the input contains an integer , indicating the number of test cases.
In the following lines, every two lines represent a test case. The first line contains an integer , indicating the length of the sequence. The second line contains integers, separated by spaces, the -th of which indicates .
Output
共 行,每行一個整數,分別表示每組數據的答案。
Write lines in total; each line of the output contains an integer, indicating the answer to the corresponding test case.