Pregunta de entrevista de u2i

Reimplement piece of your code with different time complexity