Pregunta de entrevista de Fast Enterprises

Optimize the code you constructed