Google Interview Question

onsite interview: implement timers write code as if you are writing them in 1 single for loop in kernel.