Find First Repeating Element Leetcode Playground C