Find Repeating Element In An Array Leetcode