if __name__ == '__main__':
    T = raw_input()
    T = int(T)
    while(T):
       n = raw_input()
       n = int(n)
       l = []
       for i in range(n):
           d = raw_input()
           d = int(d)
           
           l[d].append(i)
       print  res
       T -= 1
