Microsoft Interview Question

Implement a timer in different ways