Given a string, your task is to write a function that reverses only the vowels in the string and returns the resulting string. The positions of all the other characters should remain unchanged.
Details:
Example:
Historical Note:
February has often been a month of reflection and change. Just as the vowels change positions while keeping the rest of the string intact, sometimes rearranging our priorities can lead to a refreshed perspective.
Implement your solution in under 45 minutes!