The problem with a question like this is that it's not an actual problem you face. "Now hold on" I hear you say, "This is a problem I'm facing, because I don't know how to solve it". Well, the way I see it, that's not exactly what that line means.
In your question, you posted (ad verbatim) the full problem. You did not attempt to solve it. Or at least you did not tell us about it. The problem is stated and you ask others to solve it.
What we ideally would have liked to see is:
- This is the problem I'm trying to solve
- This is how I am trying to solve it
- I'm stuck here. This doesn't work because... <--- That is the actual problem you face
Looking through your question history, I see why you might be somewhat confused. You have after all successfully asked this type of question before. And you've gotten answers and upvotes. I personally think that has sent the wrong message from the start.
That is not your fault and I don't think you can be blamed for it. I'm surprised to see that the community has not picked this up and informed you that such questions are problematic, if not off-topic for SO.
Anyway, that is my view on the closure and the history of your questions. I hope this explains my reasoning behind the closure. Thank you for bringing it up here in a constructive manner.