Pregunta de entrevista de EPAM Systems

simple coding question something like string problem