Solve SRM 154, Div 2, Problem ProfitCalculator