Pregunta de entrevista de Pepperfry

Design Lottery System, Explian data structures and algorithms used in the same.