Find First Repeating Element In Array Leetcode