Help me in solving AO10 problem

My issue

My code

# Update the code below to solve the problem

t = int(input())
for i in range(t):
    N = int(input())
    A = list(map(int, input().split()))
    

Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone