Ups, I must have had a bad day when I put that question in. Our answer was wrong.
I corrected this, and completely changed the question.
About writing an app to solve it.
You are only ask for a) registration and b) your first (or first two) post(s). So there should be no need.
Its fine though, if you want to do that for exercise.
The problem is spammers may also do that. So we regularly try to break this effort of spammers. We come up with entirely new questions. Or complete rewordings, in such a way that a script would no longer recognize the question.
So any such app, will stop working on a regular base.