Bloomberg interview question

Design and implement a lottery system.