Reduce Array Size To The Half Leetcode