Capgemini interview question

Code in Java for strings and array