[SRM607] PalindromicSubstringsDiv2 by Yanzhe Chen