Pregunta de entrevista de EPAM Systems

Simple leetcode easy question working with array and strings