American Express interview question

Was asked a string vowel manipulation question.