Array Partition Leetcode Solution 86229al400