[SRM509] PalindromizationDiv2 by Kaiyang Lv