Reverse Vowels Of A String
easy
1. Given a string 's'. 2. Reverse only all the vowels in the string and return it. 3. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both cases.
Constraints
1. 1 <= s.length() <= 10^5 2. String consist of printable ASCII characters.
Format
Input
s = "hello" s = "PepCoding"
Output
res = "holle" res = "PipCodeng"
Example
Sample Input
hello
Sample Output
holle