------
## 最终结论
```python
def can_reduce_to_one(t, test_cases):
    results = []
    for n, a in test_cases:
        possible = any(a[i] < a[i + 1] for i in range(n - 1))
        results.append("YES" if possible else "NO")
    return results

# Read input
t = int(input())
test_cases = []
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    test_cases.append((n, a))

# Get results and print them
results = can_reduce_to_one(t, test_cases)
for result in results:
    print(result)
```