Pergunta de entrevista da empresa CapTech

How would you test a string if it's a palindrome?