I only see one troll in that topic, and the downvotes on his post seem to reflect that.
I gave you a nice long and detailed response, detailing the fact that every single suggestion
posted will give you the correct output. I ran every single implementation personally, even though it was clear they would all work. And they did. I also gave you yet another possibility (that gives you five
ways to accomplish what you want), despite the fact that it's a completely stupid option and is more an attempt to indicate what you're doing wrong.
It's one thing to not understand something, anybody can do that.
It's another thing to not understand and then insist that the help you're getting is wrong, you have to also be bad at following instructions to do that, and have a strong belief that you are more right than everyone else.
It's a completely other thing entirely to not understand something, insist that your help is wrong, and then
create a post in another place badmouthing the people who were trying to help you. Who does it take to do that? It takes a troll.
Please, grow up. I don't know if you're in a bad place in your life lately or something, but this post and your other one about people hating you indicate very strongly that you are incredibly immature. We can all forgive the occasional outburst, so perhaps if you think for about 2 minutes before you make these posts you'll realize you're being childish. And no, I was not the one who locked your "why does everyone hate me" thread, but I am not surprised that someone saw fit to do it.