Frage im Vorstellungsgespräch bei Philips

How would you implement a electronic toothbrush with specific run states in python.