Testing Round #6 Problem B Optimizer