HCLTech Interview Question

To check palindrome string?