HCLTech interview question

Basics of C and Java