Infosys interview question

Basics of programming like writing small programs