SAP Interview Question

Write an algorithm that determines if two strings are palindromes