Lottery Code. Problem Set 7 CMPSC 121