Lutron Electronics Interview Question

Discuss the thought process for designing the s/w for a vending machine?