If both are equal then the substring is a palindrome
if ( hash_LR == reverse_hash_LR ) { if ( isPalindrome ( str , L , R ) == true ) printf ( " The ▁ Substring ▁ [ % d ▁ % d ] ▁ is ▁ a ▁ " " palindrome STRNEWLINE " , L , R ) ; else printf ( " The ▁ Substring ▁ [ % d ▁ % d ] ▁ is ▁ not ▁ a ▁ " " palindrome STRNEWLINE " , L , R ) ; } else printf ( " The ▁ Substring ▁ [ % d ▁ % d ] ▁ is ▁ not ▁ a ▁ " " palindrome STRNEWLINE " , L , R ) ; } return ; }