Folio3 Interview Question

write code for determining a string is palindrome.