Pregunta de entrevista de Huawei Technologies

Coding problem to sort integers provided by the user and remove duplicate ones in final array.