Reverse Vowels of a String
Write a function that takes a string as input and reverse only the vowels of a string.
Given s = "hello", return "holle".
Given s = "leetcode", return "leotcede".
The vowels does not include the letter "y".
Login to see Answer and Coaching Session
More interview questions