HCLTech Interview Question

Python code for Palindrome string