Infosys interview question

normal array , string question in the interview