Qualtrics Interview Question

How do you write a function that finds palindromes