Infosys interview question

very basics qsns.