Find First Repeating Element Leetcode Interview