Pergunta de entrevista da empresa JetSynthesys

Core Java, programming puzzles. Based on string manipulation.