The problem is to measure how long it takes a drunken cockroach to touch each tile of a floor of square tiles which is N tiles wide and M tiles long.
In addition, we want to know how many times our drunken cockroach has touched each tile.
From "Smalltalk-80: The Language".