JPMorganChase Interview Question

write python function which checks if inserted string is a palindrome