KanTime interview question

oops concepts c programs output