Under the existing Asking policies, homework questions are acceptable as long as they have "a summary of the work you've done so far to solve the problem, and a description of the difficulty you are having solving it.
"
I saw this question, which basically asked to verify/check a potential solution. At the time, "homework" was part of the title. Clearly the OP put some effort into it (and even came up with an answer), but the question itself asks "Is this the right answer?" And of course the flip-side is if the answer is "no," there may be many solutions. So is this question "on-topic" and if so is the attempted answer the reason it is?