Reltio Interview Question

First repeating element in an array