IBM interview question

Fundamental programs