In Time Tec interview question

few codes to write down