Tech Mahindra Interview Question

Palindrome strings based on reverse and front same then return true else false