apple pie's submission of Make Palindrome 2 | CodeChef