HCLTech interview question

Technical question written and verbal