Infosys Interview Question

write a basic code on creating an artificial digital clock in the computer