Write a function that takes a string as input and reverse only the vowels of a string.
Example 1:
Input: "hello"
Output: "holle"
Example 2:
Input: "leetcode"
Output: "leotcede"
Note:
The vowels does not include the letter "y".
package com.string;
/**
* Title:
*
* @Author
* @CreateTime 2019/6/17 9:05
*/
public class Leetcode_345_ReverseVowelsofaString {
/**
* Runtime: 2 ms, faster than 98.67% of Java online submissions for Reverse Vowels of a String.
* Memory Usage: 37.4 MB, less than 90.