Money View interview question

write function to check if a string is palindrome or not