http://www.nxcoding.com/archives/leetcode-daily-1328-break-palindrome