Recursively Palindromic Partitions

HDU - 2765