Shutterfly interview question

Implement a function to check if a string is palindrome