Solving Reverse Vowels of a String in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

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"

See the full details of the problem Reverse Vowels of a String at LeetCode

Originally posted at: