Pergunta de entrevista da empresa Tech Mahindra

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