Palindrome PartitioningII solved