Pregunta de entrevista de Octro

Leetcode medium based on array and strings