Write a function that takes a string as input and reverse only the vowels of a string.
Example
No.1
Input: “hello”
Output: “holle”
No.2
Input: “leetcode”
Output: “leotcede”
Note
The vowels does not include the letter “y”.
Code
1 | public String reverseVowels(String s) { |