Strings-remove dumplicate

my code is giving correct output only for 1 testcase


please help me fixing it

@shubham.mehla2000 hey shubham mehla your code is seem wrong why are you using star ?

just to remove all the number repeating

@shubham.mehla2000 if you allow me so that I can suggest you a better approach

1 Like

okkk please , go ahead