HCLTech interview question

oops concepts