Epic interview question

Check if a string passed to a function is a palindrome