Amazon Interview Question

What is the Big O notation for the following program?