Pregunta de entrevista de Bloomberg

Q. Leetcode Medium problem. (on strings)