Questions with easy/obvious solutions tend to attract large numbers of similar answers. Answers #1, #3, and #4 were all posted within minutes of each other, so there's really nothing suspicious going on there. Just three developers who all banged out a quick solution to the asker's problem. This is one of the key features of Stack Overflow, and it's hard to say that they should have done anything different.
I suppose, in an ideal world, it would be nice for them to notice someone else had already posted a similar answer and delete theirs, but...race condition alert! What if all three did this, immediately deleting their own "duplicate" answers? Now we're back to the question having no answers, and the world has become a worse place.
That might sound like an exaggeration, and in some ways, I guess it is. The problem can be easily prevented by the user coming back days later and cleaning up "duplicate" answers. But that takes a pretty strongly quality-minded person, not only to motivate them to even come back and check, but also to motivate them to delete an answer that has gained them reputation.
Approaching it from a different way, we might ask ourselves, what is the harm in having three answers to a question that all say the same thing? Is it noisy? Well, maybe, but not in a bad way, since the answer you need will be at the top of the pile anyway, so you need not look through the rest of them. If you do, you can immediately see that they're saying the same thing, thus validating the correctness of the first answer you saw, all without taking an undue amount of time.
The only harm they really have is a bit of redundancy, and that's not really a harm. Sometimes it's a feature. So...while I sympathize with your desire to slash out redundancy and clean up, I think it's important to temper it a bit.
That said, there are three cases where I do think such answers need to be ruthlessly pruned:
When they are exact duplicates, most likely because they are code-only answers. While there is some value in having multiple variants of the same solution, explained in different ways, two identical code blocks aren't useful to anyone. As a moderator, I will delete these. If you want to bring one to my attention, a custom flag is probably best ("exact duplicate of existing answer <link>, adds nothing new to the question").
Late answers that plagiarize from an earlier answer (i.e., copy its code and/or its explanation without attribution). This is essentially the case for answer #2 that you found. The problem here is not just noise; it's that the person did not merely simultaneously arrive at the same solution as other programmers. They actually just copied someone else's solution and tried to pass it off as their own. Moderators take plagiarism very seriously, and will delete answers that copy other people's work without proper attribution. Again, flagging these with a custom flag ("possible plagiarism of <link>") is appropriate.
Questions that have received an excessively large number of answers, where redundant duplicates have started to cause problems (like pushing potentially useful alternative solutions onto another page or so far down the page they won't be seen). Moderators get an automatic flag under such circumstances, and we'll prune as we see fit. (Again, keeping case #1 in mind—don't delete answers that might add value, even if they cover similar ground.) In the case of the question you cited, there's really nothing of value being hidden, and the number of visible answers is far from excessive.