Reverse vowels in a given string

3

1 votes
Easy-Medium
Problem

Given a string, your task is to reverse only the vowels of string.

Example:

Input : hello

Output : holle

Input : hello world

Output : hollo werld

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?