Antra interview question

(Coding) sort & remove the duplicate element from an array