Partition Array Into Two Parts Leetcode Solutions With Explanation