A code sample is not strictly required, no. What is required is for you to explain where you're at, what particular bit you're stuck on, and (if possible) what you think you need to take a step forward. Since we're dealing with programming problems, it's often the case that a code sample is the quickest, clearest way to pass on a large part of that information. Trying something -- anything -- is also usually a good way to place yourself in the problem space such that you can explain your location to other people. You can absolutely do it in prose, though.
It looks to me like you're just way too early in your research on this problem to be posting a Stack Overflow question. You need a lot more material about your grasp of the situation. As it is, your question reads like a spec that you're expecting someone else to fulfill, which is not something that we do here.
See also How does "proof of effort" make a question better? and How much research effort is expected of Stack Overflow users?