Tredence interview question

palindrome