Folio3 interview question

write code for determining a string is palindrome.