NetApp interview question

How would you write class/method for vending machine?