Frage im Vorstellungsgespräch bei JetSynthesys

Core Java, programming puzzles. Based on string manipulation.