BETA
School Problem's Submission isn't counted in score!

Submissions: 3840 Accuracy:

21.09%

Reversing the vowels
     

Given a string, reverse only the vowels present in it and print the resulting string.


Input: First line of the input file contains an integer T denoting the number of test cases. Then T test cases follow. Each test case has a single line containing a string.

Output: Corresponding to each test case, output the string with vowels reversed.

Example:

Input:
4
geeksforgeeks
practice
wannacry
ransomware

Output:
geeksforgeeks
prectica
wannacry
rensamwora

 

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Yash Kodesia

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.