Find First Repeating Element Leetcode Solutions C