Infosys UK interview question

theoretical ques