Partition Array Into Two Parts Leetcode Problems On Stack