Palindrome Partitioning Problem