Infosys Interview Question

very basics qsns.