Domanda di colloquio di Natron Energy

Describe the time complexity of the code written in Python.