Input is "Hello" , output is "Holle". All vowels should be replaced in reverse order.
Sigiloso
I explained using stacks with o(n) complexity. Other ways to do is maintain 2 indexes from starting point and ending point. Increase starting point and decrease ending point and swap the vowels.