problem I: floodit
See the PDF document for a description of this problem.