IBM interview question

What is the complexity of this algorithm?