word of English letters. The vowels are a, e, i, o, u in either case; every other letter is a consonant.
Rearrange the vowels so that, reading left to right, they appear in non-decreasing order of their ASCII codes (so every uppercase vowel comes before every lowercase one). Each consonant must stay in its position. Return the resulting string.word="rObOtIcs" → 'rIbOtOcs'
The vowels O, O, I sit at positions 1, 3 and 5. In code order they are I, O, O; the consonants stay where they were.
word="banAnE" → 'bAnEna'
The vowels are a, A and E. Uppercase letters come before lowercase ones in ASCII, so the order is A, E, a.
word="Rhythm" → 'Rhythm'
word) ≤ 10⁵word consists only of uppercase and lowercase English lettersword="rObOtIcs"
'rIbOtOcs'
Run checks the first 3 tests in your browser. Submit checks all 146 tests on the server, hidden ones included.