Pregunta de entrevista de JetSynthesys

Core Java, programming puzzles. Based on string manipulation.