Esri Interview Question

What is the Big(O) notation of this problem?