Python Having Confusion With Calculating Big O Complexity Stack

Python Having Confusion With Calculating Big O Complexity Stack