 All Problems
Reverse Vowels of a String
easy
strings
two pointers
google
amazon

Given a string s, reverse only all the vowels in the string and return it.

Example 1:

Input: IceCreAm
Output: AceCreIm

Example 2:

Input: leetcode
Output: leotcede

Input format: A single string.

Output format: String with vowels reversed.

Run to check your code against the sample cases, or submit to run every case