Why my solution is not working even with palindrome? Solution link: CodeChef: Practical coding for everyone