Pergunta de entrevista da empresa JPMorganChase

write python function which checks if inserted string is a palindrome