Find First Repeating Element Leetcode 150 Problem