Pregunta de entrevista de Code Board Tech

sorting an array , remove duplicate character