Natron Energy interview question

Describe the time complexity of the code written in Python.