Leetcode solving 561 Array Partition I