Pregunta de entrevista de Thomson Reuters

A java programming question of Strings