Question d’entretien chez Accenture

How do you detect and eliminate all the repeated characters in one string with only using array?