Amazon interview question

What is the Big O notation for the following program?