Amazon interview question

In an array, all elements are duplicated except one element. Fint the unique element.