HCLTech Interview Question

Oops concepts