Find First Repeating Element Leetcode 752