Santa Claus and a Palindrome

Problem Name:
Santa Claus and a Palindrome
Site:CodeForces
Links:
Tags:
Problem setters: