My issue
I can’t find what is wrong with this attempt
My code
T = int(input())
for i in range(T):
N = int(input())
S = input()
vowels = "aeiou"
hard_count = 0
for letter in S:
if letter not in vowels:
hard_count += 1
elif letter in vowels and hard_count <= 4:
hard_count = 0
if hard_count <= 4:
print("YES")
else:
print("NO")
Problem Link: Easy Pronunciation Practice Coding Problem - CodeChef