Infosys Interview Question

Further questions were asked from the previous answer