Pregunta de entrevista de Google

String manipulation question and unit test quetstion