My issue
not able to solve the problem , i have done someting please checck my code and assist me
My code
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner s = new Scanner(System.in);
int t = s.nextInt();
while(t-- > 0){
int n = s.nextInt();
String arr = new String[n];
for(int i =0 ; i<n; i++){
arr[i]=s.next();
}
int count=0;
for(int i = 0; i<n; i++){
if(arr[i]=='a'||arr[i]=='e'||arr[i]=='i'||arr[i]=='o'||arr[i]=='u'){
count = 0;
}else{
count++;
}
}
if(count>=4){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
s.close();// your code goes here
}
}
Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300A/problems/EZSPEAK