The Carlyle Group interview question

Find if the strings are palindroms