25 years ago, a British computer magazine had a programming contest and this was one of the puzzles.
Primary LanguageC++