Microsoft Interview Question

Design a method midNumbers(start, end, length) that prints the middle values between two integers. Ex: midNumbers(0,5,2) would print 2,3. midNumbers(1,10,4) would print 4,5,6,7. This question was left VERY vague and I think it was intentionally left up to the interviewee to clarify as much as possible. Follow ups included "How would you check for appropriate input? How would you protect against attacks, such as a buffer overflow attack? What are some cases that you would test to check that the method is working correctly?"