Reverse only the vowels
Write reverse_vowels(text) that returns the string with its vowels (a e i o u, either
case) reversed in order while every other character stays in place.
reverse_vowels("hello") -> "holle"
reverse_vowels("leetcode") -> "leotcede"
reverse_vowels("xyz") -> "xyz"
The point is to practise two pointers moving inwards and skipping items that do not qualify.
def reverse_vowels(text):
...