To check whether the entered string is palindrome or not