Create a function that takes a String
and reverses the order of all of the vowels in the String
and returns the mutated String
without passing through the string more than once. Your solution should have a time complexity of O(n).
Examples:
"Hello" -> "Holle"
"Ben Sean Kat Cam" -> "Ban Saan Ket Cem"