HCLTech Interview Question

oops concepts