Erect the Fence

Erect the Fence - Coding Problem | K5kC