Partitioning by Palindromes

UVA - 11584