Pregunta de entrevista de Tata Consultancy Services

Strings, substring and pool ,exception