BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 2549 Accuracy :

19.97

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 Examples Use Expected Output**


Contributor: Yash Kodesia

Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



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