Capgemini interview question

Basic DSA questions on Arrays and Strings