Treebo Hotels interview question

Fist repeated element in an array of integer