Infosys interview question

standard programming questions related to language