Infosys interview question

Questions from college project and some basic technical question