GEP Interview Question

Palindrome coding question in python language