#!/usr/bin/env python3 #coding:utf-8 import math import string from sys import stdin # import numpy as np # from matplotlib import pyplot as plt def main(): read=stdin.readline #edit here! t=int(read()) while t>0: t-=1 n=int(read()) a=list(map(int,read().split())) check=lambda a,b,c:a!=b and b!=c and c!=a and (ac or a>b