ServiceNow Interview Question

How would you design a vending machine?