Spinning Up Palindromes

Problem Name:
Spinning Up Palindromes
Site:CodeForces
Links:
Tags:
Problem setters: