Pergunta de entrevista da empresa Quantori

What is the complexity of the method?