ZYRL interview question

Write a function to detect palindromes.