My issue
My code
t=int(input())
for i in range(t):
n,k=[int(n) for n in input().split()]
s=input()
count=0
for j in range(n):
if(s[j]=='a' or s[j]=='e' or s[j]=='i' or s[j]=='o' or s[j]=='u'):
count+=1
if(count-k==0):
print(0)
else:
count1=0
count3=1
count4=0
for j in range(n):
if(count4==(count-k)):
break
if(s[j]=='a' or s[j]=='e' or s[j]=='i' or s[j]=='o' or s[j]=='u'):
count1+=1
if(count1==k):
i=1
count2=1
count4+=k
while(s[i+j]!='a' and s[i+j]!='e' and s[i+j]!='i' and s[i+j]!='o' and s[i+j]!='u'):
count2+=1
i+=1
count3*=count2
count1=0
print(count3)
Problem Link: VOWMTRX Problem - CodeChef