β Next vowel
Next vowel easy Time Limit: 2 sec Memory Limit: 128000 kB
```java
import java.io.*; // for handling input/output
import java.util.*; // contains Collections framework
// don't change the name of this class
// you can add inner classes if needed
class Main {
public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
sc.nextLine();
String str=sc.nextLine();
for(int i=0;i<str.length();i++){
char x=str.charAt(i);
if(x=='a'){
System.out.print("e");
}else if(x=='e'){
System.out.print("i");
}else if(x=='i'){
System.out.print("o");
}else if(x=='o'){
System.out.print("u");
}else if(x=='u'){
System.out.print("a");
}else{
System.out.print(x);
}
}
}
}
```Last updated