Yeah, I agree with this. I've been asked a similar problem to the gas pump one and a brain teaser one as well. The goal for them is to be able to get a better feel for how you deal with the problems, not necessarily the solutions that you come up and how accurate they are.
Being a dick to an interviewer (as basically suggested in comments above) is great if you like being unemployed.