Pregunta de entrevista de ML6

How would you improve the solution?