Pergunta de entrevista da empresa MathWorks

Time complexity of algorithm The concept of pointer Gave me another coding test and I had to write the code to solve the problem, after that he asked me to explain my concept