Infosys interview question

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