resolve Palindrome_Partitioning