Optum Interview Question

Sort an array removing duplicates