int len=strlen(a);int bHuiwen = true;for (int i=0; i if (a[i]==a[len-1-n]) continue; else {bHuiwen = false; break;}