Catawiki interview question

What is the complexity of your code?