Find First Repeating Element Leetcode Rating