Pergunta de entrevista da empresa Boeing

What is the time complexity of this portion of code ?