In Time Tec Interview Question

oops concepts ,