Pergunta de entrevista da empresa Beyond, Inc.

Input is "Hello" , output is "Holle". All vowels should be replaced in reverse order.

Resposta da entrevista

Sigiloso

27 de jun. de 2019

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.