Pergunta de entrevista da empresa IBM

The question can be based on string and array