Pregunta de entrevista de Qualtrics

How do you write a function that finds palindromes