Help me in solving DAA005 problem

My issue

give me full cod3e

My code

for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))

    found = False

    for i in range(n):
        for j in range(i):
            if a[i] == a[j]:
                found = True

    if found:
        print("NO")
    else:
        print("YES")

Learning course: Analysis and Design of Algorithms
Problem Link: Selection Sort in Analysis and Design of Algorithms

can you please write the question here?