This question was closed earlier today with a comment left on it by @YannisRizos advising:
Hello and welcome! Implementation questions are off topic, you should ask them on our sister site Stack Overflow, however please make sure you add your code in the question. Read our FAQ thoroughly to see what questions we welcome on Programmers.
Although the question itself is not that great, should we have tried to help the user rephrase their question and then flagged it for migration to SO instead of closing the question? The user is most likely going to ask the question as-is (if at all) on SO and probably receive similar down and close votes there.
From this question it's my understanding we have a migration path to SO, should we be using that rather than a normal close vote?