HCLTech interview question

Oops and scenario based question