Submission keeps on failing in Google Kickstart, find error problem link in first comment

/Kick Start - Google’s Coding Competitions/
#include<stdio.h>
#include<string.h>
void main(){
int n;
scanf("%d",&n);
char king[n][500];
for(int i=0;i<n;i++)
scanf("%s",king[i]);
for(int i=0;i<n;i++){
int y=strlen(king[i])-1;
if(king[i][y]==‘y’)
printf("%s is ruled by nobody.\n",king[i]);
else if(king[i][y]==‘a’||king[i][y]==‘e’||king[i][y]==‘i’||king[i][y]==‘o’||king[i][y]==‘u’)
printf("%s is ruled by Alice\n",king[i]);
else
printf("%s is ruled by Bob.\n",king[i]);
}
}

Hey @negia :wave:

Thanks for asking your doubt.
In this problem, the character can be uppercase also but your code only checks for the lowercase ‘y’ and lowercase vowels.