update solution for Palindrome Partitioning