How to remove the repearing character from a given string

Difficulty 8
Helpful 8
Save 0
View 742