Rosetta Problems

Erect the Fence

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