Question d’entretien chez NetApp

How would you write class/method for vending machine?