Pergunta de entrevista da empresa Parsons Corporation

What is the time complexity of this implementation? (Big O)