Md Ejaz interview question

Basic loop questions and conditional operations.