Pregunta de entrevista de Leonteq Securities

Question regarding algorithm complexity