Yes this annoys me these days. I was relatively good at these straight out of university. Now after 13 years of writing software I find my ability to do them is hit and miss. I do however write far better, more maintainable, cleaner software than I wrote straight out of university.
Asking brain teasers is fine as long as that's what your technical people actually do all day -- sit around and ask each other wacky logic problems they half-remember reading about on the internet somewhere, continually trying to one-up another (and if you don't answer with 90 seconds or so, you get fired, on the spot).
But for most software engineering roles, not so much.