In Time Tec interview question

oops and basic dsa and algorithm