Pergunta de entrevista da empresa Apple

Design an API that would allow remote interaction with a shared microwave in the office