Leetcode 561 Array Partition In C