Special Array With X Elements Leetcode