LTIMindtree Interview Question

write code to find a given string is palindrome or not