Mistral Solutions interview question

Design a decade counter