Given a string s, rearrange the characters such that all vowels are sorted in nondecreasing order by their ASCII values, while all consonants remain in their original positions.
Return the resulting string.
Note: The vowels are
'a','e','i','o','u','A','E','I','O', and'U'. All other English letters are considered consonants.
Constraints:
s.length
s consists only of letters of the English alphabet in uppercase and lowercase.
Given a string s, rearrange the characters such that all vowels are sorted in nondecreasing order by their ASCII values, while all consonants remain in their original positions.
Return the resulting string.
Note: The vowels are
'a','e','i','o','u','A','E','I','O', and'U'. All other English letters are considered consonants.
Constraints:
s.length
s consists only of letters of the English alphabet in uppercase and lowercase.