Sollicitatievraag bij Infosys

Write a programme to pass an array and return the highest element without any duplicates in that array.