ServiceNow interview question

How would you design a vending machine?