A little programming puzzle.