SAP interview question

Write an algorithm that determines if two strings are palindromes