Pergunta de entrevista da empresa WisdmLabs

Basic programming question on array and string