Rosetta Problems

Arrange flowers

https://marisaoj.com/problem/686