Add solution to cut-the-sticks problem.