結果 : first repeating element in array leetcode