LTIMindtree interview question

write code to find a given string is palindrome or not