Let's separate the two questions
This is about a coding challenge
And questions like that are not off-topic on their own
It doesn't matter what the motivations are for asking a question. A good question is a good question, a bad question is a bad question, regardless of where the underlying problem originates from. If the question and its answers are useful to future visitors, it can stay. We are here for the long tail, after all.
What to do with the answers?
Apparently the original question was about Java (I can't see Martjin adding that tag on a whim), but the original link is dead and there's no Archive link so there's no way to be 100% sure. Since most of the other answers read as "Me too in [some other language here]", I trimmed most of them out. I left two groups of answers in
- Attempting to answer in Java
- Attempting to explain the problem being asked about, even if they used a different language
In most cases, a simple mod flag on these won't suffice. They look too much like "incorrect answer" flags (good chance you get a decline). A Meta post explains in better detail.