fn optimize_additive(operations: impl Iterator<Item = i32>) -> (i32, u32)