WNS-Vuram interview question

Reverse a string , logical thinking, remove duplicates