HCL interview question

Basic Programming