Pergunta de entrevista da empresa SAP

Write an algorithm that determines if two strings are palindromes