bool palindrome(string str) { // write code here int i,j,sum=0,mid; i=0; j=str.size()-1; mid=str.size()/2; while(i<=...