Partition Array Into Two Parts Leetcode Solutions In C