WD interview question

Draw a state diagram for vending machine.