Lottery is a game in which people place stakes to win a prize, typically money.…