Pregunta de entrevista de Mr. Cooper

String Manipulation (Adding and Removing) Algorithm