saegusa's submission of The Next Palindrome | CodeChef