Reltio interview question

First repeating element in an array