algo4: dp: string: Palindromic substring counter