Bloomberg Interview Question

Design and implement a lottery system.