Pregunta de entrevista de Lab49

Fix the bug. Then refactor the code how you want it.