SLB Interview Question

What's the time complexity of your solution?