Pregunta de entrevista de Trafilea

What would you improve in this code.