Pregunta de entrevista de Bloomberg

Design and implement a lottery system.