HCLTech interview question

Basic programming and Analytical questions