Find First Repeating Element Leetcode Premium