Microsoft interview question

Create a function that identifies palindromes