HCLTech interview question

Technical question