It's a little programming puzzle.