Pregunta de entrevista de Balbix

String parsing problem, not very difficult