Leetcode 561 Array Partition Leetcode Solution