Maximizes revenue by cutting a rod into optimal lengths using known optimal solutions to smaller rod sizes.
Explain code with DocComment! Try out your own code!