Xaigi Technology interview question

Reverse a string and remove duplicates