Pregunta de entrevista de Natron Energy

Describe the time complexity of the code written in Python.