Pregunta de entrevista de MathCo

What would I do differently?