Personally, I agree with the close vote. Yes, there are some differences in the syntax, so no answer could be copied over directly. But the differences seem very minor, if someone did adapt an old answer, the heavy lifting would have been done by the user who answered the previous question. It's mostly just changing a bit of syntax, and throwing out a feature or two and adding another. The fact that the old question wants all strings and you want one random string also doesn't really affect the core of the challenge.
I can only recommend you use try the sandbox next time or ask in chat, so you can get feedback before you commit to the challenge, which might have turned up that previous challenge.