Array Partition Leetcode Solution 862232a2