Pergunta de entrevista da empresa Ciena

How would you code a watchdog timer?