Find two nonnegative numbers whose sum is 12 and so that the product of one number and the power of 3 of the other number is a maximum. Java version. Check other repos for Python equivalent.