Optum interview question

Sort an array removing duplicates