Tech Mahindra Interview Question

palindrome string