Tech Mahindra interview question

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