Rosetta Problems

Sell Diminishing-Valued Colored Balls

https://leetcode.com/problems/sell-diminishing-valued-colored-balls