Why it not showing correct output this is today code byte to remove all duplicate charachter i used remove function but my o/p is not right?

logically its not ethical to earn points in daily code byte by asking doubts,
you should try to solve it by yourself, since it would not be correct and morally wrong for me to tell u the answer,

BUT ill definitely help once the duration for this question ends, till then try. Try a dry run on various test cases ull succeed its simple question