Pregunta de entrevista de Red Hat

- Do a function in X language with algorithm, describe complexity