Amortized analysis
Strategy 1: add up operations
Note: I’ve made assumptions about the constants,
but the analysis could be done for any constants.
Note 2: This is sometimes called the “Aggregate
Method”