Amazon Interview Question

write a function that validates whether a string is a palindrome