Function to return the length of the longest palindromic sub - string such that it starts and ends with the character ch
int maxLenPalindrome ( string str , int n , char ch ) { int maxLen = 0 ; for ( int i = 0 ; i < n ; i ++ ) {