Domanda di colloquio di u2i

Reimplement piece of your code with different time complexity