Amazon Interview Question

Write a function to detect if a character string is palindrome or not.