Partition Array Into Two Parts Leetcode Contest Questions