3-Palindromes

CodeChef - PALIN3