Infosys Interview Question

normal array , string question in the interview