Help me in solving EZSPEAK problem

My issue

For this question my code is right but all the test cases going to fail. please help me to resolve it.

My code

t = int(input())

for j in range(t):

n = int(input())

s = input()

count = 0

res = "aeiou"

if n<=3:
    
    print("YES")

else:
 
    
    for i in range(n):
        
        if s[i] not in res:
            
            count+=1
            
            if count ==4:
                
                print("N0")
                break
            
        else:
            
            count = 0
             
    
    if count<4:
        
        print("YES")

Try this

t = int(input())

for j in range(t):

    n = int(input())
    
    s = input()
    
    f = True
    
    count = 0
    
    res = "aeiou"
    
    # if n<=3:
        
    #     print("YES")
     
        
    for i in range(n):
        
        if s[i] not in res:
            
            count+=1
            
        else:
            
            count = 0
            
        if count == 4:
            f = False
            break
    
    if f:
        print("YES")
    else:
        print("NO")

@aniket_van
Instead of “NO” u have written “N0”. That is why u are getting wa.

Check your way of writing , it should be same as the given ! check it and run again