I disagree with the other answer. As I see it, there are two schools of MSE-closures. There is the "we think this site should have only perfect questions and perfect answers" school, and there is the "we don't want to become a homework-solutions-for-free website" school.
Quite clearly, this question falls foul of both schools of thought - it is poorly posed, and it is a picture-perfect example of a "Problem Statement Question", and the "Off Topic/context" close reason was introduced for this type of question.
Therefore, I do not think that this question should have been edited and re-opened as it was done. This simply means that we can be smug about having a nice website, and the OP can be smug about getting full marks in their take-home test. So we are smug, but irresponsible. I believe the proper solution should have been to compromise:
Put the question "On Hold" for a week or two and only then, if the OP has not edited, edit to improve.
This gives the OP an opportunity to edit the question themselves, and otherwise give the deadline for the hypothetical test time to pass. And we still end up with a nice question.