uwi's submission of How to Repaint a Fence | CodeChef