It not only says
i had the same error but now works (thanks Jane!)
but it also shows the used solution. That makes it an answer to the question. The OP had the same problem used some of the code from the self-answered question of the OP and gave back his full implementation to the community.
Maybe that answer doesn't add much, maybe a downvote is OK-ish but flagging as NAA is wrong in this case.
Your flag was marked invalid by some users correctly.
Do notice that disputeddisputed means that some users agreed with your flag and some didn't.
On the risk of not longer answering the question, by adding to much context, this doesn't mean that everybody should post his own code including the solution. Such answers can be downvoted: this answer is not useful (because it adds nothing new to the specific problem in the question)