Numpy Array Find Duplicates Leetcode Javascript Practice