O(n)

Maybe I'm missing something?