Infosys interview question

Subject questions and coding question.