Pergunta de entrevista da empresa PearlPay

Explain to me what is the time complexity of this algorithm