problem: (D) Santa Claus and a Palindrome Solution in C/C++ Archive