bug implementation of Palindrome Partitioning II