Pregunta de entrevista de EGYM

System Design questions, refactoring bad solution