Implemented Bonuses problem in SRM 145 DIV 1