[SRM528] MinCostPalindrome by Kaiyang Lv