Capgemini interview question

Array concepts