I guess I'm not understanding the problem then, because I thought we were not supposed to expand into a do, since the problem states:
"Define ntimes (page 167) to expand into a (local) recursive function instead of a do."
Isn't the problem asking you to write this without expanding into a do, or am I missing something here? What would be a correct solution to the problem?