Qualcomm Interview Question

implement a routine to control timers.