Why these 2 codes are not giving correct answers, Please review both answers

Why these 2 codes are not giving correct answers, Please review both answers.
The above one is Wrong on Test Case 15
http://codeforces.com/problemset/problem/118/A
https://ide.codingblocks.com/s/248312
https://ide.codingblocks.com/s/248311

@cbcao263
Y is also considered a vowel in the question. Try to read and debug the code yourself, it will help you grow and improve.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.