Pregunta de entrevista de JPMorganChase

write python function which checks if inserted string is a palindrome