Infosys interview question

Questions from your projects. Basics of programming.