Partition Array Into Two Parts Leetcode 150