Find First Repeating Element Leetcode Two