ZYRL Interview Question

Write a function to detect palindromes.