Pregunta de entrevista de Lyric

Basic question on Array and String (Leetcode Easy Level)