Back to Question

Reverse Vowels of a String

Question Explain

Given a string `s`, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u'. Use the Two-Pointer technique.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.