Solutions to code puzzles in various languages