My solution attempts to the monthly IBM Research "ponder this" puzzles