Pregunta de entrevista de Pratt & Whitney Canada

for python asked palindrome question.