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"
Here are the overall instructions for code challenges, if you need a reminder. Please create your own gist, don't comment on this one or you might inadvertently spoil the answer for other people. When you're done, submit your gist using this form.