Samsung Electronics Interview Question

Write a function to find if a string is a palindrome.