Pergunta de entrevista da empresa SmartThings

how would you design a vending machine system