In Time Tec Interview Question

oops and basic dsa and algorithm