Datadog interview question

What is the time complexity (O) of the algorithm?