Revorse the vewels

Revorse the vewels

给定text 字符串,创建并返回一个新字符串,方法是找出所有元音并颠倒其顺序,同时保持所有其他字符在原始位置上的原样。为使结果更易于呈现,每个位置的大写字母必须与原文保持一致。

例如,将"Ilkka" 的元音颠倒过来,就会产生"Alkki" ,而不是"alkkI" 。在这个问题上,元音是通常的"aeiouAEIOU" 。我们再来看一个例子。

example

输入:字符串 (str).

输出: 字符串字符串 (str).

示例

assert reverse_vowels("Bengt Hilgursson")...
You should be an authorized user in order to see the full description and start solving this mission.