Find First Repeating Element Leetcode 150 Solution