Remove duplicates from a string while maintaining the order of characters.
MediumProblem Statement
Remove duplicates from a string while maintaining the order of characters.
Sample Input
programming
Sample Output
progamin
Limits
Time: 2s · Memory: 256 MB