I think the minimal understanding reason is the best for questions like these:
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklistStack Overflow question checklist.
"Tell us what you've tried to do" can be taken here to mean "show us some code".