when user types "aa" it will print "aaay".
when user types "thay" it will print "aythay"

It will loop until a letter of vowel is found and letter which is not vowel will move back.

Every word will + ay at the end.

Do you have a even more simple solutions for this?

I dont quite get this code actually.