Infosys interview question

Some programming questions and some general questions