Domanda di colloquio di Anonymous

Coding questions and they asked to optimise the code