Optum interview question

reverse a array and remove duplicate