BNP Paribas interview question

write a function to find a string is palindrome or not