Rosetta Problems

Erect the Fence II

https://leetcode.com/problems/erect-the-fence-ii