Pregunta de entrevista de Tech Mahindra

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