Hinny Potter's submission of A Problem on Sticks | CodeChef