EGYM Interview Question

System Design questions, refactoring bad solution