I have a question closed here. It was closed for not being focused enough, which says,
"Needs more focus - if your question has many valid answers (but no way to determine which - if any - are correct), then it probably needs to be more focused to be successful in our format. This question currently includes multiple questions in one. It should focus on one problem only.."
While the question has many valid answers (as do many coding questions), it for sure has a way to determine if any are correct, and it only asks one question on one problem.
And under what topics can be asked about in SO,
"a specific programming problem, or
a software algorithm, or
software tools commonly used by programmers; and is
a practical, answerable problem that is unique to software development"
It falls under these guidelines. I was told in the comments by one who voted to close it that it closed for being a homework problem, and that I should show work done to solve it, and SO is only for fixing problems. But I didn't see anything specific about fixing code in the topics required, plus the question was flagged for not being focused, not for being off-topic (which seem conflicting, how can it be asked to be more focused, implying it's clearly on topic, but also be off topic?). I also pointed out that it's not a homework problem, defined in web searches as work done for school or paid piecework (which can be debatable, but it can't be argued that it without a doubt is homework). I don't see the point in adding code with a poor attempt at solving the problem, just so it can appear more fitting with a subjective critique some have of it, which would just waste time for the person trying to work the code out. If any one person doesn't want to answer it, that's fine, but leaving the possibility up in case one is up to the challenge is more useful for SO than closing it.