Solve the 'Palindrome Partitioning II' question