Publicis Sapient Interview Question

check whether the string is palindrome.