Achieve Interview Question

Design a vending machine