Rod Cutting Profit
Given a rod of length `length` and an array `prices` where `prices[i]` is the selling price of a rod of length `i+1`, return the maximum profit obtainable by cutting the rod.
Given a rod of length `length` and an array `prices` where `prices[i]` is the selling price of a rod of length `i+1`, return the maximum profit obtainable by cutting the rod.