Partition Array Into Two Parts Leetcode Solutions Cpp