HCLTech interview question

Simple and basic programming questions