Infosys Interview Question

simple questions