Infosys Interview Question

Related to previous job since I'm experienced