Pepperfry Interview Question

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