Datadog Interview Question

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