Pergunta de entrevista da empresa Natron Energy

Describe the time complexity of the code written in Python.