rewrite leetcode palindrome partition ii