Help me in solving EVENHATE problem

My issue

which test case failed

My code

# cook your dish here
t=int(input())
for i in range(t):
    n=int(input())
    l=list(map(int,input().split()))
    o=0
    e=0
    for i in l:
        if (i%2!=0):
            o+=1
        else:
            e+=1
    if (e==n or o==n):
        print(0)
    elif (e!=0):
        print(o+1)
        
    

Problem Link: Even Numbers Hate Practice Coding Problem