Why is the big O of this function O(n^2)?
Isn't this just a sum of constant terms? Shouldn't the function be O(1)?