Preprocess the entire Notebook.

def preprocess(
        self, nb: "NotebookNode", resources: dict
    ) -> Tuple["NotebookNode", dict]:
        """Preprocess the entire Notebook."""
        for index, cell in enumerate(nb.cells):
            if "## Solution" in cell.source:
                nb.cells[index + 1].source = ""

        return nb, resources