P99soft interview question

write a code to check if string is palindrome or not