Pergunta de entrevista da empresa Atos-Syntel

How would you write a program to tell if a word is a palindrome?

Resposta da entrevista

Sigiloso

25 de jul. de 2021

First, find the reverse of the string using for loop and charAt() method, and compare it with the original string using the .equals method.