Pergunta de entrevista da empresa Cubic

what is the problem complexity ?