Microsoft Interview Question

Design a vending machine