Amazon interview question

What is the time complexity of the code?