I'd walk out, as a developer, I'd likely laugh too. Well I'd laugh, then see you were serious and walk out.<p>You want me to code fast, I'll code fast. My code will be shit, but it'll work. It won't scale, it'll roll over and die in 3 months when we make the slightest change.<p>As an interviewer its idiotic. What are you testing? If I've memorized the question you're asking me? Or seeing how fast I can think on my feet. If its the former, what? If its the later, there are other ways to test this, that make sense.<p>If you want to see how a developer thinks on his feet, give both of you a problem you haven't seen before, prototype a data structure to solve this problem. Work together interviewer and developer, you'll learn each other's thought process, and a bit about the company dynamic. It'll take longer, but more information is gained via osmosis.