solve the palindrome partitioning II problem.