Is it OK to ask a question like "Could you write a program that [does stuff]?"
Excluding code golf, most people seem to draw the line at actually writing a program, but is it OK to at least ask?
EDIT: Is it OK to look for a pair programming partner here?