LeetCode Solution, Medium, 1328. Break a Palindrome