I agree with the points previously made in the existing two answers, but I also recognize that you had useful and important motivations that should be given the right place to help the site grow.
Specifically, what is one to do when one sees...
- a question that just got on the HNQ list,
- which is on-topic, though maybe a bit marginally so,
- which is low-quality and liable to rub a large fraction of site users the wrong way, but which nevertheless
- offers a nice opportunity to write a clear and useful answer that will be a useful resource for the wider audience of the HNQ list?
The answer is simple: fix the question. If there are close-votes on it, edit it to address them and remove the concerns, and similarly so if there are problems voiced in the comments. If it looks low-grade, or homework-y, or engineering-y, or too "thin", or too poorly researched by the OP themselves, then fix those problems.
This is sometimes tricky, as it can end up requiring significant edits that could end up changing the original intent of the OP, or (more often) removing parts of it. This is ultimately a judgement call, but particularly when the parts that you are removing are the parts that make the question liable to downvotes or close-votes (which for the question at hand includes the engingeering-y parts with explicit code, and so on), I would say it is justified.
When doing this kind of surgery, it is often good to leave a courtesy comment explaining to OP that you have edited the post in ways that change the meaning, that they have the option to roll-back, and including a justified recommendation of why your version is better.
But, ultimately, looking at your posted answer, it certainly looks to have consumed quite a significant chunk of time and effort. For a low-quality starter question like the current one, I think it is reasonable to expect you to spend at least a small fraction of that effort on improving the question if you want to champion it, and particularly if you want to argue that it should act as a representative of the site to the wider SE audience that sees the HNQ listings.