Pregunta de entrevista de Bandcamp

A pretty routine system design problem.