Array Partition I(LeetCode 561):

Problem