Hopper interview question

Design a slot machine API