QSS Technosoft interview question

Remove duplicates from array and sorting of array