Update timer.c

Made the necessary changes in the timer_interrupt function that were required for the alarm clock assignment.