Pergunta de entrevista da empresa Paralaxiom

problem based on string. (easy level)