If both left and right character are not dot and they are not equal also , then it is not possible to make this string a palindrome
if ( str [ i ] != ' . ' && str [ n - i - 1 ] != ' . ' && str [ i ] != str [ n - i - 1 ] ) return false ; } return true ; }