HCLTech interview question

oop concept