Just because a question can be contextualized in an answer doesn't mean that the original question had the proper context. Answers have no bearing on the content of a question, and it is not a defense of the question in the context of discussion it's closure. Closure votes are a judgement of the question, not the question together with its answers. Many highly up-voted questions with excellent answers have been closed, for example here, here, and here. It's excellent that you were able to give an answer that makes the question look good, but that doesn't matter at all to the question of if the question should be closed.
Furthermore, this question was not closed for the crime of "not being interesting." It was closed for being unclear. The close notification reads "Please clarify your specific problem or add additional details to highlight exactly what you need." One reason that this is appropriate is that the OP has shown no work or indication that they have thought about the problem. See this meta post about showing effort and this meta post about the definition of context for details on the community's policy.