My issue
My code
# cook your dish here
Problem Link: EZSPEAK Problem - CodeChef
my solution
#include<bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--) {
int n;
cin >> n;
string s;
cin >> s;
int count = 0;
int notor_easy = 0;
for(int i = 0; i < n; i++) {
if(s[i] != 'a' && s[i] != 'e' && s[i] != 'i' && s[i] != 'o' && s[i] != 'u') {
count++;
}
if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') {
count = 0;
}
if(count >= 4) {
notor_easy++;
break;
}
}
if(notor_easy != 0) {
cout << "NO" << endl;
}
else {
cout << "YES" << endl;
}
}
return 0;
}