Pergunta de entrevista da empresa SAP

They have asked to solve palindrome problem