418. Reverse Vowels
0
Easy
You are given a string 's'. Reverse only the vowels in the string and then return it.
The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both uppercase and lowercase.
Input Format
A string 's'.
Output Format
A string with reversed vowels.
Example
Input
hello
Output
holle
Constraints
1 <= s.length <= 3 * 10^5
s consist of printable ASCII characters.
s consist of printable ASCII characters.
Loading...
View Submissions
Console