Today we are solving another challenge from LeetCode called Reverse Vowels of a String.
Write a function that takes a string as input and reverse only the vowels of a string.
Example 1:
Input: "hello"
Output: "holle"
Example 2:
Input: "leetcode"
Output: "leotcede"
Note:
The vowels does not include the letter "y".
Here's the link to the challenge:
https://leetcode.com/problems/reverse...
#leetcode #leetcodejavascript #reversevowelsofastringjaavscript #leetcodestring #javascript