Amadeus Interview Question

remove duplicate from an array