Code Board Tech interview question

sorting an array , remove duplicate character