Reduce Array Size To Half Leetcode