Optum Interview Question

reverse a array and remove duplicate