WNS-Vuram Interview Question

Reverse a string , logical thinking, remove duplicates