Capgemini Engineering Interview Question

Basic questions of array and string