Hopper Interview Question

Design a slot machine API