MathWorks interview question

what is the time complexity of this algorithm?