All the OP did was copy my answer as their own. How is that right?
What can I do?
And now the OP accepted an answer which did not even help them!
And now a mod declined my flag:
I think that answer can just be down-voted as it is not useful at all. The OP claims his answer is different, but the code does the same thing as the code shown in yours.
As that answer has a negative score, 20k users can vote to delete it. I am not sure that flagging it for moderator's attention would have any effect; that answer can be taken care from the community.
If the OP keeps doing that, he shows he doesn't understand how Stack Exchange sites work. I am not sure of the reason of pretending the two answers are different. Maybe the OP thinks that who ask the question gain reputation in accepting their own answer; if that is the case, it shows the OP doesn't understand well how Stack Exchange works.