Given a sequence A = a1, a2, ..., aN.
A continuous subsequence A[L ... R] = aL, ..., aR of A is called very beautiful if every element in A[L...R] is unique.
For example, if A = 3, 1, 2, 3, 4.
Then
Please find the maximum length of very beautiful continuous subsequence of A.
The first line of the input contains a number T — the number of test cases.
The first line of each test case contains a positive integer N — the length of A.
The second line of each test case contains N numbers — a1, a2, ..., aN.
For each test,
For each test case, print the maximum length of very beautiful continuous subsequence.