A company buys rods of different lengths in wholesale and sells them in pieces of different lengths. This program will take a list of prices for different lengths, and the total length. The program will also print all possible cuts for the given length that will yield maximum profit, print maximum profit, and honor total immutability.