Pergunta de entrevista da empresa Walmart Global Tech

a question about arrays and strings .