apple pie's submission of Weird Palindrome Making | CodeChef