Zhang Yide's submission of How to Repaint a Fence | CodeChef