Repeating Element In Array Leetcode