Find First Repeating Element Leetcode 15089