HCLTech interview question

Logical Reasoning OOPS