Wipro interview question

C program for a clock, not the display.