Pregunta de entrevista de SmartThings

how would you design a vending machine system