Capgemini interview question

More questions on slice and array