Natron Energy Interview Question

Describe the time complexity of the code written in Python.