Find a single duplicate int element in an array