Pergunta de entrevista da empresa Tata Consultancy Services

Write code for palindrome and explain the process