Periodic Palindrome Construction

CodeChef - PERPALIN