#include <iostream>
using namespace std;
#include<string.h>
int main() {
char s1[50]="BANANA";
int n=strlen(s1)-1;
for(int i=0;i<n;i++)
{
char temp=s1[i];
s1[i]=s1[n];
s1[n]=temp;
n--;
}
printf("string is=%s",s1);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojaW5jbHVkZTxzdHJpbmcuaD4KCmludCBtYWluKCkgewoJY2hhciBzMVs1MF09IkJBTkFOQSI7CglpbnQgbj1zdHJsZW4oczEpLTE7Cglmb3IoaW50IGk9MDtpPG47aSsrKQoJewoJCWNoYXIgdGVtcD1zMVtpXTsKCQlzMVtpXT1zMVtuXTsKCQlzMVtuXT10ZW1wOwoJCW4tLTsKCX0KCXByaW50Zigic3RyaW5nIGlzPSVzIixzMSk7CgkKCXJldHVybiAwOwp9