NetApp Interview Question

How would you write class/method for vending machine?