FunctionRacerProblemsRace

Reverse Vowels of a String

EasyStringsPython, JavaScript, TypeScript, Java, C++

The vowels are a, e, i, o, u in lower or upper case. Return the string you get by reversing the order of only the vowels of s, leaving every other character where it is.

Example 1

s "hello"
returns "holle"

Vowels e and o swap places: holle.

Example 2

s "AeX"
returns "eAX"

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Strings problems