MathWorks Interview Question

what is the time complexity of this algorithm?