Question d’entretien chez JPMorganChase

write python function which checks if inserted string is a palindrome