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