Palindrome Pairs

CodeChef - PP