Pregunta de entrevista de Cognizant

basic string manipulation program asked